#ifndef H_COMMENTSCACHELOADER
#define H_COMMENTSCACHELOADER

#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <fstream>
#include <string>

#include "comment.h"

using namespace std;

struct CommentsCacheLoader
{
public:
	void LoadCommentsFromCache(string path, LjPost* rootComment);
private:	
	string addCommentFromCache(ifstream& file, Container* parent, int level);

	string filePath_; 	
	LjPost* rootComment_;			
};


#endif
